import { _decorator, Component, Label, Node } from 'cc';
import { BaseComponent } from '../../../../../extensions/cocos-scaffold-3x/assets/ui/base/BaseComponent';
import { JC } from '../../m/JokerStorage';
const { ccclass, property } = _decorator;

export class HandRankBookListItemProp {
    constructor(
        public index: number,
        public handRank: JC.HandRank,
    ) { }
}
@ccclass('HandRankBookListItem')
export class HandRankBookListItem extends BaseComponent<HandRankBookListItemProp> {

    @property(Label)
    lbLevel: Label = null

    @property(Label)
    lbName: Label = null

    @property(Label)
    lbBase: Label = null

    @property(Label)
    lbMul: Label = null

    onInit() {
        this.lbLevel.string = "Lv"+this.prop.handRank.level.toString()
        this.lbName.string = this.prop.handRank.cfg.name
        this.lbBase.string = this.prop.handRank.base.toString()
        this.lbMul.string = this.prop.handRank.mul.toString()
    }

    update(deltaTime: number) {
        
    }
}

